package com.smart.home.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel("场景执行记录信息")
public class SceneExecution {

    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("关联场景ID")
    private Long sceneId;

    @ApiModelProperty("触发用户ID（可为空）")
    private Long triggeredBy;

    @ApiModelProperty("开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty("结束时间（可为空）")
    private LocalDateTime endTime;

    @ApiModelProperty("执行状态: RUNNING, SUCCESS, FAILED")
    private String status;

    @ApiModelProperty("错误信息（可为空）")
    private String errorInfo;
}

